package top.clydezhou.lab.demo.springcloud.client.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 服务配置
 */
@Component
public class ServiceConfig {
    private String applicationName;

    public String getApplicationName() {
        return applicationName;
    }

    @Value("${spring.application.name}")
    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }
}
